﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="companyManager.aspx.cs" Inherits="WebSite.admin.company.companyManager" %>
<%@ Register src="../../Controls/AddressArea.ascx" tagname="AddressArea" tagprefix="uc1" %>
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />

    <script language='javascript'>

        function trim(str){ //删除左右两端的空格
　　     return str.replace(/(^\s*)|(\s*$)/g, "");
        }

        function chk1Clicked() {
            var chk = document.getElementById("chk1");
        }

	</script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="maincontent">
    <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
    所在位置：商家列表->商家
    <%= Request.QueryString["ot"] == "ed" ? "编辑" : "添加"%>
    <a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
 

     <ext:PageManager ID="PageManager1" runat="server" />
        <ext:Form ID="extForm1" runat="server" BodyPadding="5px" 
            EnableBackgroundColor="true" Title="" ShowHeader="false" >
            <Rows>
                 <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                  
                   <ext:TextBox ID="txtCompanyCode"  Label="公司编号" Required="true" ShowRedStar="true" runat="server" Text=""></ext:TextBox>
                   <ext:TextBox ID="txtShortName"  Label="公司简称" Required="true" ShowRedStar="true" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
             <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                    <ext:TextBox ID="txtName"  Label="公司全称" Required="true" ShowRedStar="true" runat="server" Text=""></ext:TextBox>
                       <ext:TextBox ID="txtManager" Required="true" ShowRedStar="true"  Label="公司负责人" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
              <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                   
                   <ext:TextBox ID="txtManagerMobile"  Label="负责人手机号" Required="true" ShowRedStar="true" runat="server" Text=""></ext:TextBox>
                   <ext:CheckBox id="chk1"  runat="server"   AutoPostBack="true"    Text="收件人信息与下单人信息相同" 
                        OnCheckedChanged="chk1_CheckedChanged"></ext:CheckBox>
                </Items>
            </ext:FormRow>
        
                 <ext:FormRow ColumnWidths="25% 25% 25% 25%">
                <Items>
              
                   
           <ext:DropDownList ID="ddlSheng" Label="省份" ShowRedStar="true" CompareType="String"
                CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择省份！" runat="server"
                AutoPostBack="true" OnSelectedIndexChanged="ddlSheng_SelectedIndexChanged">
            </ext:DropDownList>
            <ext:DropDownList ID="ddlShi" Label="地区市" ShowRedStar="true" CompareType="String"
                CompareValue="-1" CompareOperator="NotEqual" CompareMessage="请选择地区市！" runat="server"
                AutoPostBack="true" OnSelectedIndexChanged="ddlShi_SelectedIndexChanged">
            </ext:DropDownList>
            <ext:DropDownList ID="ddlXian" ShowRedStar="true" CompareType="String" CompareValue="-1"
                CompareOperator="NotEqual" CompareMessage="请选择县区市！" Label="县区市" runat="server">
            </ext:DropDownList>
                        <ext:TextBox ID="txtPostcode"  Label="邮  编" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
               <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                         <ext:TextBox ID="txtAddress" Required="true" ShowRedStar="true" Label="公司地址" runat="server"  Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
                <ext:FormRow ColumnWidths="50% 50%" >
                <Items>
                    <ext:TextBox ID="txtUserName" Required="true" ShowRedStar="true" Label="登录用户名" runat="server" Text=""></ext:TextBox>
                   <ext:TextBox ID="txtPassword"  Required="true" ShowRedStar="true" Label="登录密码" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
                <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                   <ext:DropDownList ID="ddlUpCompany" runat="server" Label="上级商家" Required="true" ShowRedStar="True">
                    </ext:DropDownList>
                    <ext:DropDownList ID="ddlCompanyCategory" runat="server" Label="商家类别" Required="true"
                        ShowRedStar="True">
                        <ext:ListItem Selected="true" Text="经销商" Value="0"></ext:ListItem>
                        <ext:ListItem Text="供货商" Value="1"></ext:ListItem>
                    </ext:DropDownList>
                </Items>
            </ext:FormRow>
              <ext:FormRow ColumnWidths="30% 30% 40%">
                <Items>
                   <ext:DropDownList ID="ddlCompanyLevel" runat="server" Label="商家等级" Required="true" ShowRedStar="True">
                    </ext:DropDownList>
                    <ext:TextBox ID="txtCreditMoney" Required="true" ShowRedStar="true" Label="授信额度" runat="server" Text=""></ext:TextBox>
                      <ext:TextBox ID="txtOnSale" Required="true" ShowRedStar="true"  Label="折扣" runat="server" Text=""> </ext:TextBox>
                      <ext:Label ID="lblOnSaleDescription" Text="*折扣为0.50-1.00之间的数字" runat="server"> </ext:Label>
                </Items>
            </ext:FormRow>
                   <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                    <ext:TextBox ID="txtEmail"  Label="电子邮件" runat="server" Text=""></ext:TextBox>
                   <ext:TextBox ID="txtTel"  Label="公司电话" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
               <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                    <ext:TextBox ID="txtLinker"  Label="公司联系人" runat="server" Text=""></ext:TextBox>
                   <ext:TextBox ID="txtMobile"  Label="联系人手机号码" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
    
               <ext:FormRow ColumnWidths="50% 50%">
                <Items>
                    <ext:TextBox ID="txtFax"  Label="传  真" runat="server" Text=""></ext:TextBox>
                   <ext:TextBox ID="txtQQ"  Label="QQ" runat="server" Text=""></ext:TextBox>
                </Items>
            </ext:FormRow>
            </Rows>
        </ext:Form>
        <center>
        <div style="margin-top:20px;">
           <ext:Button runat="server" Text="保 存" ValidateForms="extForm1" ID="btnSubmitForm1"   Type="Submit"
                                OnClick="btnSubmitForm1_Click">
                            </ext:Button>
        </div>
        </center>
           <asp:HiddenField ID="hdCompany" runat="server" />
          
    </div>
    </form>
</body>
</html>
